package com.ebocy.hammer.game.message;

import com.ebocy.hammer.core.constants.GameMessageCode;
import com.ebocy.hammer.core.message.AbstractC2SMessage;

public class C2SShopOperation extends AbstractC2SMessage {
	private long waresId;
	private short index;

	public long getWaresId() {
		return waresId;
	}

	public short getIndex() {
		return index;
	}

	@Override
	public short getMessageCode() {
		return GameMessageCode.GAME_SHOP_OPERATION;
	}

	@Override
	public void readMessage() {
		waresId = Long.parseLong(readString());
		index = readShort();
	}
}
